package com.boolib.service;

import com.boolib.commons.entity.ServerResponse;
import com.boolib.pojo.ShopUser;

import javax.servlet.http.HttpSession;

public interface IUserService  {



    ServerResponse<ShopUser> ShopUserRegister(ShopUser shopUser);

    ServerResponse<ShopUser>  ShopUserLoginAuth(ShopUser shopUser);

    ServerResponse<ShopUser>  ShopUserLogout(HttpSession session);

    ServerResponse ShopUserForgetPassword(String username);

    ServerResponse ShopUserAlterPasswordBeforeLogin( Integer id ,String password , String token );


    ServerResponse ShopUserAlterPasswordAfterLogin(Integer id, String password);


    ServerResponse ShopUserAlterAvatar(Integer id, String avatar);



    ServerResponse ShopUserAlterInfo(ShopUser shopUser);

    ServerResponse logout(HttpSession session);
}
